package com.dog.basics.api.controller.mtkj;


import com.dog.basics.bean.vo.api.mtkj.ApiShoppFlowingWaterVo;
import com.dog.basics.common.constant.SwaggerConstants;
import com.dog.basics.common.util.IPageVo;
import com.dog.basics.common.util.PageParam;
import com.dog.basics.common.util.R;
import com.dog.basics.service.mtkj.IMtFlowingWaterService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 商城资金流水 前端控制器
 * </p>
 *
 * @author wph
 * @since 2020-11-09
 */
@RestController
@Api(value = "商户钱包列表", tags = SwaggerConstants.API_ALL)
@RequestMapping("api/flowing/water")
@AllArgsConstructor
public class MtFlowingWaterController {
    private final IMtFlowingWaterService mtFlowingWaterService;

    /**
     * @Description: 商家我的账户列表
     * @Param: page
     * @return: IPage<BankAccountVo>
     * @Author: wph
     * @Date: 2020/3/27 0027
     */
    @GetMapping
    @ApiOperation(value = "商家我的账户列表", notes = "商家我的账户列表", tags = SwaggerConstants.API_SHOPPINGMONEY)
    public R<IPageVo<ApiShoppFlowingWaterVo>> getApiPageList(PageParam page) {
        return R.ok(mtFlowingWaterService.getApiPageList(page));
    }
}
